package com.sxbbc.common.core.entity.jz;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 用户推送记录
 * </p>
 *
 * @author leehao
 * @since 2019-05-24
 */
public class CPushLog implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 用户id
     */
    private Integer cid;

    /**
     * 交易单号
     */
    private String payCode;

    /**
     * 消息类型  见PushTypeEnums
     */
    private String type;

    /**
     * 消息内容 见MsgUtils工具类
     */
    private String content;

    /**
     * 外键 可能用来处理事件需要的参数
     */
    private String targetCode;

    /**
     * 0未读 1已读
     */
    private Integer reading;

    private Date createTime;

    /**
     * 中文全内容
     */
    private String remark;

    /**
     * 逗号分隔内容
     */
    private String params;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }
    public Integer getCid() {
        return cid;
    }

    public void setCid(Integer cid) {
        this.cid = cid;
    }
    public String getPayCode() {
        return payCode;
    }

    public void setPayCode(String payCode) {
        this.payCode = payCode;
    }
    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }
    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }
    public String getTargetCode() {
        return targetCode;
    }

    public void setTargetCode(String targetCode) {
        this.targetCode = targetCode;
    }
    public Integer getReading() {
        return reading;
    }

    public void setReading(Integer reading) {
        this.reading = reading;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }
    public String getParams() {
        return params;
    }

    public void setParams(String params) {
        this.params = params;
    }

    @Override
    public String toString() {
        return "CPushLog{" +
        "id=" + id +
        ", cid=" + cid +
        ", payCode=" + payCode +
        ", type=" + type +
        ", content=" + content +
        ", targetCode=" + targetCode +
        ", reading=" + reading +
        ", createTime=" + createTime +
        ", remark=" + remark +
        ", params=" + params +
        "}";
    }
}
